package com.guli.gulimall.gulimallproduct.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.guli.gulimall.gulimallproduct.entity.AttrEntity;
import com.sun.tracing.dtrace.ArgsAttributes;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("商品属性分组及该属性下的属性信息")
public class AttrGroupWithAttrsVo {

     //商品属性分组基本信息
    /**
     * 分组id
     */
    @TableId
    @ApiModelProperty("商品属性分组id")
    private Long attrGroupId;
    /**
     * 组名
     */
    @ApiModelProperty("商品属性分组名称")
    private String attrGroupName;
    /**
     * 排序
     */
    @ApiModelProperty("商品属性分组排序")
    private Integer sort;
    /**
     * 描述
     */
    @ApiModelProperty("商品属性分组描述")
    private String descript;
    /**
     * 组图标
     */
    @ApiModelProperty("商品属性分组icon")
    private String icon;
    /**
     * 所属分类id
     */
    @ApiModelProperty("商品属性所属分类id")
    private Long catelogId;

    private List<AttrEntity> attrs;
}
